package org.frog.sgs.mina.server;

import org.apache.mina.core.session.IoSession;
import org.apache.mina.filter.codec.ProtocolCodecFactory;
import org.apache.mina.filter.codec.ProtocolDecoder;
import org.apache.mina.filter.codec.ProtocolEncoder;

/**
 * @author duanxiangqi
 * @date 2012-10-18
 */
public class MyCodecFactory implements ProtocolCodecFactory {

	public ProtocolDecoder getDecoder(IoSession session) throws Exception {
		return new MyProtocolDecoder();
	}

	public ProtocolEncoder getEncoder(IoSession session) throws Exception {
		return new MyProtocolEncoder();
	}
}
